/*
 * @(#)CharmPlayStatus.java $version 2013. 7. 5.
 *
 */

package com.pace.gonu.model.status;

import java.util.ArrayList;
import java.util.List;

import com.pace.gonu.constants.CharmBoardXY;
import com.pace.gonu.constants.Order;
import com.pace.gonu.constants.Status;
import com.pace.gonu.model.BoardPath;
import com.pace.gonu.model.PlayRock;

/**
 * @author pace
 */
public class CharmPlayStatus implements PlayStatus {
	private List<PlayRock> playRocks = new ArrayList<PlayRock>();
	private List<PlayRock> moveRocks = new ArrayList<PlayRock>();
	private List<PlayRock> xRocks = new ArrayList<PlayRock>();
	private Order order = Order.RED;
	private Status statusType = Status.NORMAL;

	public CharmPlayStatus() {
		for (CharmBoardXY charmBoardXY : CharmBoardXY.values()) {
			PlayRock moveRock = new PlayRock();
			BoardPath path = new BoardPath();
			path.setX(charmBoardXY.getX());
			path.setY(charmBoardXY.getY());
			moveRock.setPath(path);
			moveRocks.add(moveRock);
		}
	}

	@Override
	public List<PlayRock> getPlayRocks() {
		return playRocks;
	}

	@Override
	public String getOrder() {
		return order.toString();
	}

	@Override
	public void setOrder(Order order) {
		this.order = order;
	}

	@Override
	public List<PlayRock> getMoveRocks() {
		return moveRocks;
	}

	@Override
	public String getStatusType() {
		return statusType.toString();
	}

	@Override
	public void setStatusType(Status status) {
		this.statusType = status;
	}

	@Override
	public List<PlayRock> getXRocks() {
		return xRocks;
	}

}
